.sw_control {
    color: #9bfff1;
    /* font-weight: bold; */
    text-shadow: 3px 3px 5px #005084;
}
.sw_infoText {
    animation: sw_animation 5s linear 1.5s infinite;
    text-align: center;
    color: #BA55D3;
    text-shadow: -1.3px 0px 2.2px #000, 0px -1.3px 2.2px #000, 1.3px 0px 2.2px #000, 0px 1.3px 2.2px #000;
}

@keyframes sw_animation {
    0% { color: #BA55D3; }
    20% { color: #00BFFF; }
    40% { color: #00FF00; }
    60% { color: yellow; }
    80% { color: #FF6A6A; }
    100% { color: #BA55D3; }
}

.swContainer.backpack {
    width: 100%;
    height: 100%;
    background-color: rgb(44 39 39 / 38%);
    z-index: 10;
}
.swContainer.backpack * {
    text-shadow: none;
    box-sizing: border-box;
}
.swContainer.backpack .mainBackpack {
    --bgColor: #2c3645;
    border: 3px solid rgb(179, 201, 213);
    width: 60%;
    height: 70%;
    background-color: var(--bgColor);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.swContainer.backpack .mainBackpack .bagContent {
    width: 100%;
    height: 100%;
    bottom: 0%;
    display: flex;
    justify-content: space-between;
    background: #2c3445;
    border: 2px solid #415259;
    padding: 5px;
    box-sizing: border-box;
    /*overflow-x: scroll;*/
}
.swContainer.backpack .mainBackpack .bagContent * {
    position: relative;
}
.swContainer.backpack .mainBackpack .bagContent .bagPanel {
    background-color: #9091cc;
    height: 100%;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 100px;
    /*margin: 0 5px;*/
    padding: 3px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .subtitle {
    width: 100%;
    text-align: center;
    color: black;
    flex-grow: 0;
    height: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    flex-shrink: 0;
    overflow: scroll;
}
.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f6f6ff;
    border-radius: 5px;
    box-sizing: border-box;
    gap: 10px;
    height: 100%;
    margin: 5px;
    overflow: hidden; /* 防止子元素溢出 */
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .avatar {
    width: 40%;
    height: 60%;
    min-width: 90px;
    min-width: 120px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0px -1px 5px black, 0px 3px 15px black;
    border-radius: 8px;
    top: 0;
    left: 0;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .avatar .avatarImg{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    border-radius: 8px;
}
.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .avatar .avatarName{
    top: 0px;
    font-size: 16px;
    font-family: "shousha";
    text-shadow: 0 0 2px black;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 89;
    pointer-events: none;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .sw_info {
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    border-radius: 4px;
    margin: 0 10px;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .sw_info * {
    color: #1b1e2e;
    font-size: 24px;
    line-height: 1.2;
    text-shadow: #4f52b5 0 0 3px;
    font-family: "STXinwei", "xinwei";
}


.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .skillContainer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /*grid-template-rows: repeat(3, 1fr);*/
    align-items: flex-start;
    align-content: flex-start;
    overflow: auto;
    gap: 10px;
    padding: 10px;
    height: 100%;
    width: 100%;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .skillItem {
    transition: 0.2s;
    width: 100%;
    height: 30px;
    background-color: #d5e5ff;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    /*border-radius: 8px;*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'shousha';
    font-weight: 1000;
    border: 2px solid #564fbc;
}
.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .skillItem:hover {
    /*box-shadow: 0 0 1px 2px gold;*/
    background-color: #80a9ec;
    /*transform: translateY(2px);*/
    box-shadow: 0 4px 8px rgba(100, 100, 255, 0.2);
    border: 2px solid #564fbc;
}
.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .skillTip {
    position: absolute;
    background: #f5eded;
    width: 102%;
    height: fit-content;
    z-index: 10;
    padding: 6px;
    color: black;
    border: 3px solid #143308;
    border-radius: 3px;
    left: 0;
    display: none;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .backpackContainer {
    padding: 2px;
    gap: 10px;
    overflow-y: auto;
    font-family: system-ui;
    height: 100%;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .backpackContainer .backpackItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 8px;
    margin-bottom: 6px;
    background-color: #d5e5ff;
    /*border-radius: 8px;*/
    box-shadow: 0 1px 2px 1px rgb(0 0 0 / 49%);
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .backpackContainer .backpackItem:hover {
    background-color: #80a9ec;
    /*transform: translateY(2px);*/
    box-shadow: 0 4px 8px rgba(100, 100, 255, 0.2);
    border: 2px solid #564fbc;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .backpackContainer .backpackItem .itemName {
    max-width: 70%;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-weight: 500;
    transition: font-size 0.2s;
    color: black;
    font-family: 'shousha';
    font-weight: bold;
}

.swContainer.backpack .mainBackpack .bagContent .bagPanel .sw_Container .backpackContainer .backpackItem .itemCount {
    max-width: 30%;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    text-align: right;
    flex-shrink: 0;
}

.player:not([data-position="0"]) .sw_playerState {
    left: 0;
    top: 28px;
    width: 100%;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    color: #fff500;
    text-shadow: 1px 1.5px 1px rgb(0 0 0);
}
body.layout-false .player[data-position="0"] .sw_playerState {
    left: 0;
    top: 28px;
    width: 100%;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    color: #fff500;
    text-shadow: 1px 1.5px 1px rgb(0 0 0);
}
body.layout-true .player[data-position="0"] .sw_playerState {
    left: 60px;
    top: 16px;
    /* width: 100%; */
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    color: #fff500;
    text-shadow: 1px 1.5px 1px rgb(0 0 0);
    transform: translateX(-50%);
}


.sw_skillInfoDesc {
    position: absolute;
    width: 30%;
    border: 1px solid white;
    left: 35%;
    top: 40%;
    text-align: left;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: "shousha", serif;
    z-index: 12;
    transform-origin: center bottom;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.sw_skillInfoDesc.fade-out {
    opacity: 0;
}


.observeRequestContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /*height: 60px;*/
    align-items: flex-start;
    align-content: flex-start;
    overflow: auto;
    max-height: 140px;
}
.observeRequestContainer > * {
    flex-shrink: 0;
}
.observeRequestContainer .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    border-radius: 4px;
    background-color: #87b5ffb3;
}

.observeRequestContainer .item .itemName{
    flex: 3;
    left: 2%;
    width: 40%;
    text-align: left;
    font-family: 'shousha';
    font-size: large;
    font-weight: bold;
}
.observeRequestContainer .item .itemRequest{
    flex: 4;
    left: 40%;
    width: 30%;
    text-align: left;
    font-family: 'shousha';
    font-size: large;
    font-weight: bold;
}
.observeRequestContainer .item .itemBool{
    color: white;
    /* border: none; */
    /* border-radius: 6px; */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 30%;
    /* width: 10px; */
    height: 100%;
    left: 70%;
    display: flex
}
.observeRequestContainer .item .itemBool .itemBoolButton {
    background-color: #65b600;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    /* width: 100%; */
    width: 50%;
    height: 80%;
    flex: 1;
    margin-left: auto;
    top: 10%;
}
.observeRequestContainer .item .itemBool .itemBoolButton .text {
    font-family: "shousha", serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.observeRequestContainer .item .itemBool .itemBoolButton.right {
    background-color: #d91744;
    left: 50%;
}

.observeRequestContainer .item .itemBool .itemBoolButton:hover {
    background-color: #49a60a;
}
.observeRequestContainer .item .itemBool .itemBoolButton.right:hover {
    background-color: #a60a21;
}

.observeRequestContainer .item .itemBool .itemBoolButton:active {
    transform: scale(0.96);
}

.observeRequestContainer .item .itemBool .itemBoolButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.observeContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    height: 180px;
    align-items: flex-start;
    align-content: flex-start;
    overflow: auto;
}

.observeContainer .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 150px;
    /* padding: 0 8px; */
    /* margin-bottom: 6px; */
    /*background-color: #d5e5ff;
    box-shadow: 0 1px 2px 1px rgb(0 0 0 / 49%);*/
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
    border-radius: 4px;
}

.observeContainer .item .avatar {
    width: 100px;
    /* height: 100px; */
    left: 5%;
    /* top: 10px; */
    overflow: hidden;
    width: 100px;
    height: 120px;
    /* left: 10px; */
    /* top: 10px; */
    overflow: hidden;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    /*border-radius: 20%;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.observeContainer .item .avatar .avatarName{
    top: 0px;
    font-size: 16px;
    font-family: "shousha";
    text-shadow: 0 0 2px black;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 20;
    pointer-events: none;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.observeContainer .item .avatar .avatarButton{
    padding: 2px 0 4px 0;
    /* border: none; */
    /*background-color: #1d8cffb0;*/
    color: #ffffff;
    /* border-radius: 6px; */
    cursor: pointer;
    transition: background-color 0.3s;
    top: 80%;
    width: 100%;
}
.observeContainer .item .avatar .avatarButton.forbidEnter{
    background-color: #FF0936B0;
}
.observeContainer .item .avatar .avatarButton.forbidEnter:hover {
    background-color: #a11919;
}
.observeContainer .item .avatar .avatarButton.canEnter{
    background-color: #1d8cffb0;
}
.observeContainer .item .avatar .avatarButton.canEnter:hover {
    background-color: #1642b0;
}


/*!*记牌器相关的样式*!*/
/*.popupContainer.deckMonitor {*/


/*    width: 100%;*/
/*    height: 100%;*/
/*    background-color: rgb(44 39 39 / 38%);*/
/*    z-index: 9;*/



/*}*/

/*.popupContainer.deckMonitor * {*/
/*    text-shadow: none;*/
/*    box-sizing: border-box;*/
/*}*/

/*.popupContainer.deckMonitor .deckMonitor {*/
/*    --bgColor: #45362c;*/
/*    border: 3px solid rgb(213 194 179);*/
/*    width: 80%;*/
/*    height: 75%;*/
/*    background-color: var(--bgColor);*/
/*    left: 50%;*/
/*    top: 50%;*/
/*    transform: translate(-50%, -50%);*/


/*}*/

/*.popupContainer.deckMonitor .deckMonitor .title {*/
/*    width: 100%;*/
/*    height: 10%;*/
/*    top: 0%;*/
/*    background-color: var(--bgColor);*/
/*    font-size: 2em;*/
/*    color: #fff5f5;*/
/*    text-align: center;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/


/*}*/
/*!*背包样式*!*/
/*.popupContainer.deckMonitor .deckMonitor .title span {*/
/*    text-decoration: underline;*/
/*    font-size: 0.8em;*/
/*    color: yellow;*/
/*    font-weight: lighter;*/

/*}*/

/*.popupContainer.deckMonitor .deckMonitor .contentContainer {*/
/*    width: 100%;*/
/*    height: 90%;*/
/*    bottom: 0%;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    background: #45362c;*/
/*    border: 2px solid #594d41;*/
/*    padding: 5px;*/
/*    box-sizing: border-box;*/
/*    !* 滚动方案开启，压缩方案关闭 *!*/
/*    overflow-x: scroll;*/
/*}*/

/*.popupContainer.deckMonitor .deckMonitor .contentContainer * {*/
/*    position: relative;*/
/*}*/
/*
.menu.main{
    width: 400px;
    height:310px;
    position: absolute;
    overflow:hidden;
    padding:0;
}
.menu.main > .menu-content > div > .menubutton.round {
    left: 335px;
    top: 207px;
    z-index: 3;
    transition-property: color, box-shadow;
    transition-duration: 0.3s;
    position: absolute;
}
.menu.main > .menu-content > div > .right.pane > .expanded {
    padding-bottom: 70px;
}
*/
